package com.zj.sms;

import java.util.Iterator;

import org.apache.log4j.Logger;

import com.zj.sms.constant.Constants;

/**
 * 监控任务，监控各个值
 * @author zj20160705
 *
 */
public class MonitorJob implements Runnable{
	private static Logger logger = Logger.getLogger(MonitorJob.class);
	@Override
	public void run() {
		logger.info("--------------monitor start-------------");
		logger.info("####### filterList size : "+Constants.filterList.size());
		Iterator<String> iterator = Constants.filterList.iterator();
		while(iterator.hasNext()){
			logger.info(iterator.next());
		}
		logger.info("--------------monitor end-------------");
		try {
			Thread.sleep(10*1000);
		} catch (InterruptedException e) {}
	}
	
}
